package com.jeespring.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * @Title: AccountDTO
 * @Description:
 * @Author 张朝阳
 * @Date 2020/11/29 13:53
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@Table(name = "t_account")
public class Account implements Serializable {
    //自增主键
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;

    private String userId;

    private Long amount;
}
